import rtconfig
from building import *

cwd     = GetCurrentDir()
CPPPATH = [cwd, str(Dir('#'))]

src = Split('''
main.c
lvgl/lv_port_disp.c
lvgl/lv_port_indev.c
''')

# src += Glob('lvgl/lv_thread.c')

src += Split('''
common_utils.c
fs_mount.c
image_node.c
image_scaner.c
kv_config.c
lvgl/lv_port_disp.c
lvgl/lv_port_indev.c
ui_config_view.c
ui_photo_view.c
''')

src += Glob('key_thread_init.c')
src += Glob('ui_thread_init.c')

src += Split('''
sohu_wanip_api.c
amap_location_api.c
amap_weather_api.c
http_api_utils.c
net_thread_init.c
harmony_sans_16.c
''')

path = [cwd]
path += [cwd + '/lvgl']

defines = [
    'LV_LVGL_H_INCLUDE_SIMPLE'
]

group = DefineGroup('Applications', src, depend = [''], CPPPATH=path, CPPDEFINES = defines)

Return('group')
